package com.typhoon.spring_jdbctemplate.service;

import java.util.List;

import com.typhoon.spring_jdbctemplate.compare.CompareResult;
import com.typhoon.spring_jdbctemplate.entity.User;

/**
 * 用户信息接口
 * 
 * @author Typhoon
 * @date 2017-08-29 17:48 Tuesday
 * @since V1.0
 */
public interface UserService {

	User selectById(Long id);
	
	User update(User user);
	
	List<User> selectAll();
	
	/**
	 * 模拟客户端提交一个列表和库中数据比较
	 * 
	 * @author Typhoon
	 * @param sourceList
	 * @return
	 */
	CompareResult<User> compareUserList(List<User> sourceList);
	
}
